#!/bin/bash

# 测试脚本示例

echo "=== 启动健康检查 ==="
curl http://localhost:8080/health
echo -e "\n"

echo "=== 测试问答接口 ==="

# 问题1
echo "问题1: 韩立是谁？"
curl -X POST http://localhost:8080/api/query \
  -H "Content-Type: application/json" \
  -d '{
    "question": "韩立是谁？"
  }'
echo -e "\n\n"

# 问题2
echo "问题2: 噬金虫有什么作用？"
curl -X POST http://localhost:8080/api/query \
  -H "Content-Type: application/json" \
  -d '{
    "question": "噬金虫有什么作用？"
  }'
echo -e "\n\n"

# 问题3
echo "问题3: 昆吾山有什么宝物？"
curl -X POST http://localhost:8080/api/query \
  -H "Content-Type: application/json" \
  -d '{
    "question": "昆吾山有什么宝物？"
  }'
echo -e "\n\n"
